{##																#}
{## Developed for the University of Nottingham G52GRP module 	#}
{##																#}
{## Written by:	Marcus Whybrow (mxw18u) 						#}
{## Group: 		gp09-drm 										#}
{##																#}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
	<link rel="stylesheet" href="/media/css/reset.css" />
	<link rel="stylesheet" href="/media/css/style.css" />
	<!--[if IE]>
	<link rel="stylesheet" href="/media/css/ie.css" />
	<![endif]-->
	<!--<link rel="stylesheet" href="/media/css/jquery-ui-theme/jquery-ui-1.8rc1.custom.css" />-->
	<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2"></script>-->
	<script type="text/javascript" src="/media/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="/media/js/jquery.fancyzoom.min.js"></script>
	
	{% block head %}
	{% endblock %}
	
	<title>{% block title %}AutoLibrarian{% endblock %}</title>
</head>

{% load gravatar %}

<body id="{% block page_title %}{% endblock %}">

	<div id="page-wrap">
	
		<div id="header-wrap">
			<div id="header" class="clearfix">
				<div id="auth-box">
					{% if user.is_authenticated %}
						<a href="{% url profile %}">{% gravatar user 42 %}</a>
						<div id="ab-main" class="authenticated"><a id="ab-username" href="{% url profile %}">{{ user.username }}</a><a id="ab-logout" href="{% url django.contrib.auth.views.logout %}">logout →</a></div>
					{% else %}
						<a href="{% url profile %}"><img src="http://gravatar.com/avatar?s=42" alt="default gravatar image" width="42" height="42" /></a>
						<div id="ab-main" class="unauthenticated"><a id="ab-login" href="{% url django.contrib.auth.views.login %}">login →</a><a id="ab-register" href="{% url registration.views.register %}"> or register →</a></div>
					{% endif %}
				</div>
			</div>
		</div><!-- / #header-wrap -->
		
		<div id="content-wrap" class="clearfix">
			{% block main %}
			<div id="content" class="clearfix">
				<div id="breadcrumbs" class="clearfix">
					<ul class="clearfix">
						{% block breadcrumbs %}
						<li id="bc-home-page" class="alpha"><a href="{% url home %}">Home</a></li>
						{% endblock %}
					</ul>
				</div>
				{% block content %}
				{% endblock %}
			</div><!-- / #content -->
			{% endblock %}
		</div><!-- / #content-wrap -->
		
		<div id="footer-wrap">
			<div id="footer">
				{% block footer %}
				<p>AutoLib &bull; AutoLibrarian Project &bull; &copy; 2009, Fugue Icons by <a href="http://pinvoke.com/">Pinvoke</a></p>
				{% endblock %}
			</div><!-- / #footer -->
		</div>

	</div><!-- / #page-wrap -->
</body>
</html>
